package com.fy.consumer.feign;


import com.fy.common.api.CommonResult;
import com.fy.consumer.vo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(name = "domain-order")
public interface ConsumerProductOrderFeignService {


    @GetMapping(value = "/productOrderFindById")
    ProductModelVo productOrderFindById(int productId);

    @PostMapping(value = "/productOrderFindById")
    CommonResult addAddress(AddressVo addressVo);

    @GetMapping(value = "/findAllAddressByConsumerId")
    List<AddressVo> findAllAddressByConsumerId(int consumerId);

    @PostMapping(value = "/addObjectOrder")
    CommonResult addObjectOrder(ObjectOrderVo objectOrderVo);

    @GetMapping(value = "/objectOrderFindById")
    ObjectOrderVo objectOrderFindById(int objectOrderId);

    @GetMapping(value = "/objectOrderFindByConsumerId")
    List<ObjectOrderVo> objectOrderFindByConsumerId(int consumerId);

    @GetMapping(value = "/findAllTicket")
    List<ProductVo> findAllTicket(int storeId);
}
